﻿using System;
using System.Collections.Generic;
using System.Text;

namespace ProTrack.Entity
{
    /// <summary>
    /// 来料检验单表
    /// </summary>
    public class QcReceiveRecord
    {
        /// <summary>
        /// Id
        /// </summary>
        public long Id { get; set; }

        /// <summary>
        /// 来料检验单编号
        /// </summary>
        public string RecordCode { get; set; }

        /// <summary>
        /// 到货通知单Id (选择到货通知单)
        /// </summary>
        public long WareHouseInboundBillId { get; set; }

        /// <summary>
        /// 产品Id
        /// </summary>
        public long ItemId { get; set; }

        /// <summary>
        /// 产品物料编码
        /// </summary>
        public string ItemCode { get; set; }

        /// <summary>
        /// 产品物料名称
        /// </summary>
        public string ItemName { get; set; }

        /// <summary>
        /// 供应商
        /// </summary>
        public long VendorId { get; set; }

        /// <summary>
        /// 供应商
        /// </summary>
        public string VendorName { get; set; }

        /// <summary>
        /// 联系人
        /// </summary>
        public string VendorContact { get; set; }

        /// <summary>
        /// 联系人电话
        /// </summary>
        public string VendorContactTel { get; set; }

        /// <summary>
        /// 检验方式 (选择检验方式)
        /// </summary>
        public string InspectWay { get; set; }

        /// <summary>
        /// 版本
        /// </summary>
        public string Version { get; set; }

        /// <summary>
        /// 状态 (0：待质检, 1：检验不通过，2：检验通过)
        /// </summary>
        public int Status { get; set; }

        /// <summary>
        /// 数量
        /// </summary>
        public float Count { get; set; }

        /// <summary>
        /// 抽检数
        /// </summary>
        public float CheckNumber { get; set; }

        /// <summary>
        /// 不合格数量（根据子项自动计算）
        /// </summary>
        public int Unqualified { get; set; }

        /// <summary>
        /// 质检组
        /// </summary>
        public string InspectGroup { get; set; }

        /// <summary>
        /// 质检员
        /// </summary>
        public long EmployeesId { get; set; }

        /// <summary>
        /// 质检员
        /// </summary>
        public string EmployeesName { get; set; }

        /// <summary>
        /// 来料日期
        /// </summary>
        public DateTime ReceiveDate { get; set; }

        /// <summary>
        /// 检验开始时间
        /// </summary>
        public DateTime? InspectStartTime { get; set; }

        /// <summary>
        /// 检验结束时间
        /// </summary>
        public DateTime? InspectEndTime { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; }
        /// <summary>
        /// 创建者
        /// </summary>
        public string Creator { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? CreateTime { get; set; }
        /// <summary>
        /// 更新者
        /// </summary>
        public string Updater { get; set; }
        /// <summary>
        /// 更新时间
        /// </summary>
        public DateTime? UpdateTime { get; set; }
        /// <summary>
        /// 是否删除
        /// </summary>
        public bool Deleted { get; set; }
    }
}
